package com.qys.livesMall.navy.service.impl;

import com.qys.livesMall.navy.dao.NavyTaskDetailDao;
import com.qys.livesMall.navy.model.entity.NavyTaskDetail;
import com.qys.livesMall.navy.mapper.NavyTaskDetailMapper;
import com.qys.livesMall.navy.service.NavyTaskDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 水军任务表 服务实现类
 * </p>
 *
 * @author
 * @since 2023-07-11
 */
@Service
public class NavyTaskDetailServiceImpl implements NavyTaskDetailService {

    @Autowired
    private NavyTaskDetailDao navyTaskDetailDao;

    @Override
    public void batchSave(List<NavyTaskDetail> list) {
        navyTaskDetailDao.saveBatch(list);
    }

    @Override
    public NavyTaskDetail getById(Long id) {
        return navyTaskDetailDao.getById(id);
    }

    @Override
    public void upById(NavyTaskDetail detail) {
        navyTaskDetailDao.updateById(detail);
    }

    @Override
    public NavyTaskDetail getNextDetail(Long taskId) {
        return navyTaskDetailDao.getNextDetail(taskId);
    }

    @Override
    public List<NavyTaskDetail> getAllNoEnd(Long taskId) {
        return null;
    }
}
